<SCRIPT src="html/scripts/plugin/jquery.pstrength.1.2.js" type=text/javascript></SCRIPT>
<SCRIPT type=text/javascript>
if (window == top)top.location.href = "";
$(function() {
    $('#newpassword').pstrength();
	$('#newpassword').keyup(
		function(){
			commonEffection.resetFrame('admins_frame',true);
		}
	);
});
function checkform(){
	if(!checkEmail($("input[name='username']").val())){
		GGSHOP.msgBox.show('ERROR','Please check your Login Email!');
		return false;
	}
	<?php if (!empty($this->username)):?>
	var passwordold=$("input[name='passwordold']").val();
	if(passwordold==''||passwordold.length<6){
		GGSHOP.msgBox.show('ERROR','Please enter the old password!');
		return false;
	}
	<?php endif;?>
	var passwordnew=$("input[name='passwordnew']").val();
	if(passwordnew==''||passwordnew.length<6){
		GGSHOP.msgBox.show('ERROR','Please enter the new password!');
		return false;
	}
	var passwordnew2=$("input[name='passwordnew2']").val();
	if(passwordnew!=passwordnew2){
		GGSHOP.msgBox.show('ERROR','Confirm the second password!');
		return false;
	}
	commonEffection.setLoading();
	if (confirm('Your login email can not be modified，are you sure?')) {
		$('#changePasswordAllForm').submit();
	}
}
</SCRIPT>
<div class="fcj_menu">
        	<b class="spbg2 corner tl"></b>
    		<b class="spbg2 corner tr"></b>
    		<b class="spbg2 corner bl"></b>
    		<b class="spbg2 corner br"></b>
    		<div class="titlebar clearfix">My Account &gt; My Password</div>
    		<form name="changePasswordAllForm" id="changePasswordAllForm" action="adminb<?=CHOSING_DE?>info<?=CHOSING_DE?>dochangepass" method="post">
    		<table class="formt" width="700">
    			<tr>
    				<td width="30%" align="right"><span class="formt-title">*Login Email:</span></td>
    				<td><input type="text" name="username" onblur="checkinput(this.value)" value="<?=$this->username?>" id="username"<?php if (!empty($this->username)) {echo ' readonly="true" style="background-color:#e1e1e1"';}?> class="text"></input></td>
    			</tr>
    			<?php if (!empty($this->username)):?>
    			<tr>
    				<td align="right"><span class="formt-title">Old Password:</span></td>
    				<td><input name="passwordold" type="password" value="" id="passwordold" class="text"/></td>
    			</tr>
    			<?php endif;?>
    			<tr>
    				<td align="right"><span class="formt-title">New Password:</span></td>
    				<td><INPUT id="newpassword" type="password" name="passwordnew" class="text"/></td>
    			</tr>
    			<tr>
    				<td align="right"><span class="formt-title">Password Security Level:</span></td>
    				<td><div id="passwordStrong"></div></td>
    			</tr>
    			<tr>
    				<td align="right"><span class="formt-title">Confirm New Password:</span></td>
    				<td>
    				 <input type="password" name="passwordnew2" value="" id="passwordnew2" class="text" />
				     <input type="hidden" name="act" value="save" />
    				</td>
    			</tr>    			
    			<tr>
    				<td align="center" colspan="2"><input type="button" value="Save" name="save" onclick="checkform();" class="subtn spbg2" /></td>
    			</tr>
    		</table>
    		</form>
    		<br/> <br/> <br/> <br/> <br/><br/> <br/> <br/> <br/> <br/>
        </div>        